﻿@model MobileWebsiteGenerator.Entities.Page
@{
    ViewBag.Title = "Create";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {
        updatePage();
        $("#isHebrew").change(function () {
            updatePage();
        });
    });
    function updatePage() {
        if ($("#isHebrew").is(':checked')) {
            $("#HTitle").show("slow");
            $("label[for=HTitle],#HTitle").show("slow");
            $("#HContent_tbl").show("slow");
            $("label[for=HContent]").show("slow");
            $("#title").hide("slow");
            $("label[for=title],#title").hide("slow");
            $("#EContent_tbl").hide("slow");
            $("label[for=EContent]").hide("slow");

        }
        else {
            $("#HTitle").hide("slow");
            $("lable[for='HTitle']").hide("slow");
            $("label[for=HTitle],#HTitle").hide("slow");
            $("#HContent_tbl").hide("slow");
            $("label[for=HContent]").hide("slow");
            $("#title").show("slow");
            $("label[for=title],#title").show("slow");
            $("#EContent_tbl").show("slow");
            $("label[for=EContent]").show("slow");
        }
    }
</script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<a href="@Url.Action("Create", "Website", @MobileWebsiteGenerator.MvcApplication._MainCustomer)" style="color:Black;" id="GoToMain" title="Go to Main page">
    <img src="@Url.Content("~/images/Arrow -Left.png")" alt="Alternate Text" style="float:left;"/></a>
Hebrew ?
<input type="checkbox" id="isHebrew" name="isHebrew" />
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend></legend>
        <div id="form1">
            <div class="form_row">
                <label>
                    Title</label>
                <input class="text-box single-line form_input" id="title" name="title" type="text" value="@Html.DisplayFor(Model => Model.title)" />
            </div>
            <div class="form_row">
                <label>
                    Content</label>
                @Html.EditorFor(model => model.EContent, new { @class = "text-box single-line form_input" })
            </div>
            <div class="form_row">
                <label>
                    HTitle</label>
                <input class="text-box single-line form_input" id="HTitle" name="HTitle" type="text" value="@Html.DisplayFor(Model => Model.HTitle)" />
            </div>
            <div class="form_row">
                <label>
                    Content</label>
                @Html.EditorFor(model => model.HContent, new { @class = "text-box single-line form_input" })
            </div>
            <div class="form_row">
                <input type="submit" class="form_submit" value="Create" />
            </div>
        </div>
    </fieldset>
    
    


}
